﻿using ProductionManage.Models.Products;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using wangyaxin.Wyx.Dto;

namespace wangyaxin.Wyx
{
    public interface IWyxAppService: IApplicationService
    {
        /// <summary>
        /// 获取产品列表--王亚鑫
        /// </summary>
       
        /// <returns></returns>
        Task<string> GetProduct(string? ProductName, string? ProductCode, int pageIndex, int pageSize);

        /// <summary>
        /// 获取产品类型Tree--王亚鑫
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        Task<List<object>> GetProductType(int parentId = 0);

        /// <summary>
        /// 添加产品--王亚鑫
        /// </summary>
        /// <param name="input">产品数据传输对象</param>
        /// <returns></returns>

        Task<string> AddProduct(CreateProductDto input);

        /// <summary>
        /// 删除产品--王亚鑫
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        Task DeleteProduct(int id);

        /// <summary>
        /// 反填产品--王亚鑫
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Product> GetProductById(int id);


        /// <summary>
        /// 否、更新产品--王亚鑫
        /// </summary>
        /// <param name="product"></param>
        /// <returns></returns>
        Task<string> UpdateProduct(UpdateProductDto product);






    }
}
